<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="ButtonBar,com.happytoad.libs.riatrax.ButtonBar,gaAction,gaCategory,gaLabel,gaMode,gaValue" name="keywords">
<title>com.happytoad.libs.riatrax.ButtonBar</title>
<script type="text/javascript" src="../../../../AC_OETags.js"></script>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'ButtonBar - API Documentation';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?com/happytoad/libs/riatrax/ButtonBar.html&amp;com/happytoad/libs/riatrax/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ButtonBar</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#includeExamplesSummary">Examples</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ButtonBar"); titleBar_setSubNav(false,true,false,false,false,false,true,true,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table width="100%" cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.happytoad.libs.riatrax</a></td><td valign="top" rowspan="6" align="right"><img src="../../../../logo.jpg"></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ButtonBar</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">ButtonBar <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../images/inherit-arrow.gif"> mx.controls.ButtonBar</td>
</tr>
</table>
<p></p>
   The ButtonBar component includes automatic Google Analytic tracking.
   <br/><br/>
   Copyright (c) 2009 HappyToad IT Consulting (<a href="http://www.happytoad.com" target="_blank">http://www.happytoad.com</a>)<br/>
      Created by Rich Tretola (<a href="http://blog.everythingflex.com" target="_blank">http://blog.everythingflex.com</a>)<br/>
   
   <p></p>
<a name="mxmlSyntaxSummary"></a><span class="classHeaderTableLabel">MXML Syntax</span><span style="display:none" id="showMxmlLink"><a onclick="toggleMXMLOnly();" href="#mxmlSyntaxSummary"><img class="collapsedImage" alt="collapsed" title="collapsed" src="../../../../images/collapsed.gif"> Show MXML Syntax</a>
<br>
</span><span id="hideMxmlLink"><a onclick="toggleMXMLOnly();" href="#mxmlSyntaxSummary"><img class="expandedImage" alt="expanded" title="expanded" src="../../../../images/expanded.gif"> Hide MXML Syntax</a></span>
<div class="mxmlSyntax" id="mxmlSyntax">     <p>The <code>&lt;rx:ButtonBar&gt;</code> tag inherits all of the
   tag attributes of its superclass,  and adds the following tag attributes:</p>
     <pre>
   &lt;rx:ButtonBar
     <strong>Properties</strong>
     gaCategory="any"
     gaAction="any"
     gaLabel="any"
     gaValue="1"
     gaMode="unique|all|none"
     &gt;
       ...
       <i>child tags</i>
       ...
   &lt;/rx:ButtonBar&gt;
   </pre>
   
   </div>
<script type="text/javascript" language="javascript">
<!--
setMXMLOnly();
--></script>
<p>
<a href="#includeExamplesSummary">View the examples.</a>
</p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="../riatrax/Tracker.html" target="">com.happytoad.libs.riatrax.Tracker</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#gaAction">gaAction</a> : String<div class="summaryTableDescription">
  String to be passed to Google as the Action property.</div>
</td><td class="summaryTableOwnerCol">ButtonBar</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#gaCategory">gaCategory</a> : String<div class="summaryTableDescription">
  String to be passed to Google as the Category property.</div>
</td><td class="summaryTableOwnerCol">ButtonBar</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#gaLabel">gaLabel</a> : String<div class="summaryTableDescription">
  String to be passed to Google as the Label property.</div>
</td><td class="summaryTableOwnerCol">ButtonBar</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#gaMode">gaMode</a> : String<div class="summaryTableDescription">
  String to set tracking mode for compoment.</div>
</td><td class="summaryTableOwnerCol">ButtonBar</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#gaValue">gaValue</a> : Number<div class="summaryTableDescription">
  Number to be passed to Google as the Value property.</div>
</td><td class="summaryTableOwnerCol">ButtonBar</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ButtonBar()">ButtonBar</a>()</div>
<div class="summaryTableDescription">
        Constructor.</div>
</td><td class="summaryTableOwnerCol">ButtonBar</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="gaAction"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">gaAction</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>gaAction:String</code>&nbsp;&nbsp;[read-write]<p>
  String to be passed to Google as the Action property.
  <br/>
  An optional action for the event (e.g. "Play").
 </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get gaAction():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set gaAction(value:String):void</code>
<br>
</div>
<a name="gaCategory"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">gaCategory</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>gaCategory:String</code>&nbsp;&nbsp;[read-write]<p>
  String to be passed to Google as the Category property.
  <br/>
  An optional category for the event (e.g. "Videos").
 </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get gaCategory():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set gaCategory(value:String):void</code>
<br>
</div>
<a name="gaLabel"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">gaLabel</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>gaLabel:String</code>&nbsp;&nbsp;[read-write]<p>
  String to be passed to Google as the Label property.
  <br/>
  An optional descriptor for the event.
 </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get gaLabel():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set gaLabel(value:String):void</code>
<br>
</div>
<a name="gaMode"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">gaMode</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>gaMode:String</code>&nbsp;&nbsp;[read-write]<p>
  String to set tracking mode for compoment. ( unique | all | none )
  <br/>
  This property defaults to unique. Set to all to track all events or none to disable tracking
 </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get gaMode():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set gaMode(value:String):void</code>
<br>
</div>
<a name="gaValue"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">gaValue</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>gaValue:Number</code>&nbsp;&nbsp;[read-write]<p>
  Number to be passed to Google as the Value property.
  <br/>
  An optional value to be aggregated with the event. 
 </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get gaValue():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set gaValue(value:Number):void</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="ButtonBar()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ButtonBar</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function ButtonBar()</code><p>
        Constructor.
       </p></div>
<a name="includeExamplesSummary"></a>
<div class="detailSectionHeader">Examples</div>
<div class="exampleHeader">ButtonBarExample</div>
<div class="detailBody">
<div class="listing">
<pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:rx="com.happytoad.libs.riatrax.*"
    creationComplete="init()"&gt;
    
    &lt;mx:Script&gt;
        &lt;![CDATA[
            import com.happytoad.libs.riatrax.Tracker;
            private var tracker:Tracker = Tracker.getInstance();
            private function init():void{
                tracker.account="UA-xxxxxx-y";
                tracker.display=this;
                tracker.visualDebug = true;
            }
            [Bindable]
            private var dataset:Array = [{"data":"onedata","label":"onelabel"},
                                         {"data":"twodata","label":"twolabel"}];
        ]]&gt;
    &lt;/mx:Script&gt;
    
    &lt;rx:ButtonBar horizontalCenter="0" verticalCenter="0" dataProvider="{dataset}"/&gt;
    
&lt;/mx:Application&gt;</pre>
</div>
<script type="text/javascript" language="javascript">
<!--
				AC_FL_RunContent(
					"src", "examples/ButtonBarExample",
					"width", "100%",
					"height", "400px",
					"align", "middle",
					"id", "example1",
					"quality", "high",
					"bgcolor", "",
					"name", "example1",
					"flashvars","",
					"allowScriptAccess","sameDomain",
					"type", "application/x-shockwave-flash",
					"pluginspage", "http://www.macromedia.com/go/getflashplayer"
				);
			--></script>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
